import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Output from "../views/Output";
import InsertOutput from "../views/InsertOutput";
import UpdateOutput from "../views/UpdateOutput";
import Kind from "../views/Kind";
import Test from "../views/Test";
import Input from "../views/Input";

Vue.use(VueRouter)

const routes = [
    {
        path: '/input',
        name:'Input',
        component: Input
    },
    {
        path: '/test',
        name: 'Test',
        component: Test
    },
    {
        path: '/kind',
        name: 'Kind',
        component: Kind
    },
    {
        path: '/update',
        name: 'Update',
        component: UpdateOutput
    },
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/insertOutput',
        name: 'InsertOutput',
        component: InsertOutput
    },
    {
        path: '/output',
        name: 'Output',
        component: Output
    },
    {
        path: '/about',
        name: 'About',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
    }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
